// Programming_Scala/src/ch04/ui/observable-button.scala

package ui

import observer._

class ObservableButton( name: String ) extends Button( name ) with Subject {
  override def click() = {
    super.click()
    notifyObservers
  }
}

